<template>
    <div class="container search-form">
        <search-form :params="params" :formName="formName" :pageType="pageType" @on-search="search"></search-form>
    </div>
</template>
<script>
import { SearchForm } from 'party_fe_component/src/components/dynamicForm';
export default {
    props: {
        formName: {
            type: String,
            required: true
        },
        pageType: {
            type: String,
            required: true
        },
        params: {
            type: Object,
            default: () => { return {}; }
        }
    },
    data () {
        return {}
    },
    methods: {
        search: function (formData) {
            this.$emit('on-search', formData);
        }
    },
    computed: {

    },
    components: { SearchForm }
}
</script>
<style scoped lang="scss">
    @import '@/css/baseForm.scss';
    .search-form {
        /deep/ {
            .el-form-item__label {
                text-align: left;
                padding-left: 20px;
            }
        }
    }
</style>
